﻿<Window x:Class="GEPSDevelopEnvironment.Forms.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="客户化开发环境搭建工具" Height="600" Width="1000" FontSize="16" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <DockPanel Height="571" Width="999">
        <ScrollViewer Name="svWindow" DockPanel.Dock="Top" Height="495" Background="DimGray" CanContentScroll="True" IsManipulationEnabled="True" Width="972" MouseWheel="MouseWheel_Event">
            <DockPanel Name="dkWindow">
                <Expander Name="epSVN" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="SVN操作">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Name="epCheckOutGEPS5" Background="Wheat" Tag="Root/SVN/GEPS5[1]">
                            <Expander.Header>
                                <CheckBox VerticalAlignment="Center" Name="chkCheckOutGEPS5" Tag="Root/SVN/GEPS5[1]" Content="检出GEPS5代码" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" /> 
                            </Expander.Header>
                            <ListView Name="lstCheckOutGEPS5" IsHitTestVisible="True">
                                <ListViewItem Name="lviCheckOutGEPS5Src" MouseDoubleClick="lviCheckOutGEPS5Src_MouseDoubleClick" Tag="Root/SVN/GEPS5/Src[1]" MouseWheel="MouseWheel_Event">源路径：</ListViewItem>
                                <ListViewItem Name="lviCheckOutGEPS5Dst" MouseDoubleClick="lviCheckOutGEPS5Dst_MouseDoubleClick" Tag="Root/SVN/GEPS5/Dst[1]" MouseWheel="MouseWheel_Event">目标路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Name="epCheckOutGEPS6" Background="Wheat" Tag="Root/SVN/GEPS6[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkCheckOutGEPS6" Tag="Root/SVN/GEPS6[1]" Content="检出GEPS6代码" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstCheckOutGEPS6">
                                <ListViewItem Name="lviCheckOutGEPS6Src" MouseDoubleClick="lviCheckOutGEPS6Src_MouseDoubleClick" Tag="Root/SVN/GEPS6/Src[1]" MouseWheel="MouseWheel_Event">源路径：</ListViewItem>
                                <ListViewItem Name="lviCheckOutGEPS6Dst" MouseDoubleClick="lviCheckOutGEPS6Dst_MouseDoubleClick" Tag="Root/SVN/GEPS6/Dst[1]" MouseWheel="MouseWheel_Event">目标路径：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epGRS" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="公共资源配置">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Name="epCopyGRS" Background="Wheat" Tag="Root/GRS/Copy[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkCopyGRS" Tag="Root/GRS/Copy[1]" Content="拷贝公共资源" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstCopyGRS">
                                <ListViewItem Name="lviCopyGRSSrc" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/Copy/Src[1]" MouseWheel="MouseWheel_Event">源路径：</ListViewItem>
                                <ListViewItem Name="lviCopyGRSDst" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/Copy/Dst[1]" MouseWheel="MouseWheel_Event">目标路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Name="epMapppingGRS" Background="Wheat" Tag="Root/GRS/Mapping[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkMapppingGRS" Tag="Root/GRS/Mapping[1]" Content="映射公共资源" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstMapppingGRS">
                                <ListViewItem Name="lviMapppingGRSJunction" MouseDoubleClick="lstMapppingGRSJunction_MouseDoubleClick" Tag="Root/GRS/Mapping/junction[1]" MouseWheel="MouseWheel_Event">junction.exe：</ListViewItem>
                                <ListViewItem Name="lviMapppingGRSSrc" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/Mapping/Src[1]" MouseWheel="MouseWheel_Event">源路径：</ListViewItem>
                                <ListViewItem Name="lviMapppingGRSDst" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/Mapping/Dst[1]" MouseWheel="MouseWheel_Event">目标路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Name="epRebuildGSPExplorer" Background="Wheat" FontSize="18" Tag="Root/GRS/SearchPath[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkRebuildGSPExplorer" Tag="Root/GRS/SearchPath[1]" Content="修改GSPExplorer搜索路径" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstRebuildGSPExplorer">
                                <ListViewItem Name="lviGSPExplorerPlatform" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/SearchPath/Platform[1]" MouseWheel="MouseWheel_Event">Platform：</ListViewItem>
                                <ListViewItem Name="lviGSPExplorerCustomize" MouseDoubleClick="lstSelectPath_MouseDoubleClick" Tag="Root/GRS/SearchPath/Customize[1]" MouseWheel="MouseWheel_Event">Customize：</ListViewItem>
                                <ListViewItem Name="lviRebuildGSPExplorerAdd" MouseDoubleClick="lstRebuildGSPExplorerAdd_MouseDoubleClick" Tag="Root/GRS/SearchPath/Others[1]" MouseWheel="MouseWheel_Event">增加：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epEnv" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="环境变量配置">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Name="epGEPSEnv" Background="Wheat" Tag="Root/ENV/GEPS[1]">
                                    <Expander.Header>
                                <CheckBox VerticalAlignment="Center" Name="chkGEPSEnv" Tag="Root/ENV/GEPS[1]" Content="配置GEPS环境变量" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                        </Expander.Header>
                        <ListView Name="lstGEPSEnv" Height="33">
                                <ListViewItem Name="lviGEPSEnv" Tag="Root/ENV/GEPS[1]" MouseWheel="MouseWheel_Event">
                                    <ListViewItem.Content>
                                        <DockPanel Height="29">
                                            <Label Content="GEPS:" Width="54" />
                                            <ComboBox Name="cbbGEPSEnv" Width="890" SelectionChanged="cbbGEPSEnv_SelectionChanged" Height="25">
                                                <ComboBoxItem Name="cbiGEPS5" Content="" />
                                                <ComboBoxItem Name="cbiGEPS6" Content="" />
                                            </ComboBox>
                                        </DockPanel>
                                    </ListViewItem.Content>
                                </ListViewItem>
                        </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epBat" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="执行相关BAT文件">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Name="epCopyGSPToRelease" Background="Wheat" Tag="Root/BAT/CopyGSPToRelease[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkCopyGSPToRelease" Tag="Root/BAT/CopyGSPToRelease[1]" Content="执行CopyGSPToRelease.bat" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" FlowDirection="LeftToRight" HorizontalAlignment="Left" HorizontalContentAlignment="Left" BorderBrush="#FF001900" />
                            </Expander.Header>
                            <ListView Name="lstCopyGSPToRelease">
                                <ListViewItem Name="lviCopyGSPToRelease" Tag="Root/BAT/CopyGSPToRelease[1]" MouseWheel="MouseWheel_Event">文件路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Name="epCopyNativeResources" Background="Wheat" Tag="Root/BAT/CopyNativeResources[1]">
                            <Expander.Header>
                                    <CheckBox VerticalAlignment="Center" Name="chkCopyNativeResources" Tag="Root/BAT/CopyNativeResources[1]" Content="执行CopyNativeResources" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstCopyNativeResources">
                                <ListViewItem Name="lviCopyNativeResources" Tag="Root/BAT/CopyNativeResources[1]" MouseWheel="MouseWheel_Event">文件路径：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epMapConfigFile" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="映射配置文件">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Name="epMapClientData" Background="Wheat" Tag="Root/MapConfigFile/ClientData[1]">
                            <Expander.Header>
                                <CheckBox VerticalAlignment="Center" Name="chkMapClientData" Tag="Root/MapConfigFile/ClientData[1]" Content="映射Client\Data" 
                                          Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"  BorderBrush="#FF001900" IsHitTestVisible="True" />
                            </Expander.Header>
                            <ListView Name="lstMapClientData">
                                <ListViewItem Name="lviMapClientDataSrc" Tag="Root/MapConfigFile/ClientData/Src[1]" MouseWheel="MouseWheel_Event">源路径：</ListViewItem>
                                <ListViewItem Name="lviMapClientDataDst" Tag="Root/MapConfigFile/ClientData/Dst[1]" MouseWheel="MouseWheel_Event">目标路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Name="epMapYSPlugins" Background="Wheat" Tag="Root/MapConfigFile/YSPlugins[1]">
                            <Expander.Header>
                                <CheckBox VerticalAlignment="Center" Name="chkMapYSPlugins" Tag="Root/MapConfigFile/YSPlugins[1]" Content="映射预算插件" 
                                          Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" />
                            </Expander.Header>
                            <ListView Name="lstMapYSPlugins">
                                <ListViewItem Name="lviMapYSPluginsSrc" Tag="Root/MapConfigFile/YSPlugins/Src[1]" MouseWheel="MouseWheel_Event">文件路径：</ListViewItem>
                                <ListViewItem Name="lviMapYSPluginsDst" Tag="Root/MapConfigFile/YSPlugins/Dst[1]" MouseWheel="MouseWheel_Event">文件路径：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epConfigFile" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="修改config文件">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="服务端配置"/>
                                </DockPanel>
                            </Expander.Header>
                            <ListView>
                                <ListViewItem  MouseWheel="MouseWheel_Event">builder.bat：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="客户端配置"/>
                                </DockPanel>
                            </Expander.Header>
                            <ListView>
                                <ListViewItem  MouseWheel="MouseWheel_Event">builder.bat：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epBuild" Tag="0" Background="SlateGray" Foreground="AliceBlue" Header="编译代码">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="编译Dephi代码"/>
                                </DockPanel>
                            </Expander.Header>
                            <ListView>
                                <ListViewItem  MouseWheel="MouseWheel_Event">builder.bat：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="编译C#代码" />
                                </DockPanel>
                            </Expander.Header>
                            <ListView>
                                <ListViewItem  MouseWheel="MouseWheel_Event">增加sln文件：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
                <Expander Name="epDatabase" Background="SlateGray" Foreground="AliceBlue" Header="数据库配置">
                    <DockPanel.Dock>TOP</DockPanel.Dock>
                    <StackPanel>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="数据库配置" />
                                </DockPanel>
                            </Expander.Header>
                            <StackPanel Background="White" Orientation="Horizontal" Height="30">
                                <Label Content="服务器：" Name="lblServerName" />
                                <TextBox Width="109" Name="txtServerName" Text="." />
                                <Label Content="数据库名：" Name="lblDataBaseName" />
                                <TextBox Width="136" Name="txtDataBaseName" />
                                <Label Content="用户名：" Name="lblUserName" />
                                <TextBox Width="36" Name="txtUserName" />
                                <Label Content="密码：" Name="lblPassword" />
                                <TextBox Width="166" Name="txtPassword" />
                                <Label Content="使用Widows身份验证：" Name="lblWindowsAuth" />
                                <CheckBox VerticalContentAlignment="Center" VerticalAlignment="Center" Name="chkWindowsAuth" />
                            </StackPanel>
                        </Expander>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="新建数据库"/>
                                </DockPanel>
                            </Expander.Header>
                            <ListView >
                                <ListViewItem  MouseWheel="MouseWheel_Event">GSP路径：</ListViewItem>
                            </ListView>
                        </Expander>
                        <Expander Background="Wheat">
                            <Expander.Header>
                                <DockPanel >
                                    <CheckBox VerticalAlignment="Center" />
                                    <Label Content="还原数据库"/>
                                </DockPanel>
                            </Expander.Header>
                            <ListView >
                                <ListViewItem  MouseWheel="MouseWheel_Event">备份文件路径：</ListViewItem>
                            </ListView>
                        </Expander>
                    </StackPanel>
                </Expander>
            </DockPanel>
        </ScrollViewer>
        <StatusBar Name="statusBar1" HorizontalContentAlignment="Stretch" Grid.Row="2" DockPanel.Dock="Top" Height="41" />
        <StackPanel Orientation="Horizontal"  DockPanel.Dock="Top" Height="32">
            <Button Content="新建配置文件"  Name="btnNew"  Click="btnNew_Click" />
            <Button Content="打开配置文件" Name="btnOpen"  Click="btnOpen_Click" />
            <Button Content="导入配置文件"  Name="btnImport"  Click="btnImport_Click" />
            <Button Content="保存配置文件"  Name="btnSave"  Click="btnSave_Click" />
            <Button Content="折叠所有配置项"  Name="btnCollapse" Click="btnCollapse_Click" />
            <Button Content="展开所有配置项" Name="btnExpand" Click="btnExpand_Click" />
            <Button Content="执行选中步骤" Name="btnRun" Click="btnRun_Click" />
        </StackPanel>
    </DockPanel>
</Window>
